package com.hooya.fa.eu.biz.scheduler;


import com.hooya.fa.eu.biz.service.StkCollectionService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Description 用户同步相关定时任务
 * @Author : Zongz
 * @Copyright Copyright (c) 豪雅集团
 * @Create 2023/08
 * @Version 1.0.0
 */
@Slf4j
@Component
@RequiredArgsConstructor
public class EuGenCollectionHandler {

	private final StkCollectionService stkCollectionService;

	/**
	 * 欧盟审计数据生成
	 */
	public void euGenCollectionHandler(String startDate, String endDate, int num) {

		log.info("开始执行stk");

		try {
			stkCollectionService.generatorCollectionData(startDate, endDate, num);
		} catch (Exception e) {
			log.error("stk执行失败", e);
		}

		log.info("stk执行成功");
	}

}
